﻿<%@ Page Title="" Language="C#" Theme="Default_Themes" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="QuaTrinhHocTap.aspx.cs" Inherits="DanhMuc_QuaTrinhHocTap" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="row-fluid">
        <div class="span12">
            <div class="box">
                <div class="box-title">
                    <h3><i class="icon-file"></i>Quá trình học tập</h3>
                    <div class="box-tool">
                        <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
                        <a data-action="close" href="#"><i class="icon-remove"></i></a>
                    </div>
                </div>
                <div class="box-content" style="color:#3a87ad;border:solid 1px;">
                    <asp:UpdatePanel ID="udt1" runat="server">
                        <ContentTemplate>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="box-content"  style="text-align:right;">
                                        <input type="hidden" runat="server" id="codeid" />
                                        Tên trường &nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:TextBox ID="txtTenTruong" runat="server" CssClass="spannew"></asp:TextBox>
                                        <div style="height:5px;"></div>
                                        Loại trường &nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="drlLoaiTruong" runat="server" CssClass="spannew"></asp:DropDownList>
                                        <div style="height:5px;"></div>
                                        Ngành học &nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:TextBox ID="txtNganhHoc" runat="server" CssClass="spannew"></asp:TextBox>
                                        <div style="height:5px;"></div>
                                        Bắt đầu từ&nbsp;
                                        <asp:TextBox runat="server" ID="txtTu" placehodler="dd/mm/yyyy" CssClass="spancalenda" Height="19px" Width="100px"/>
                                        <asp:ImageButton runat="Server" ID="Image1"  ImageUrl="~/css/icons/lich.gif" AlternateText="Click to show calendar" />
                                      <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" MaskType="Date" runat="server" Mask="99/99/9999" TargetControlID="txtTu"></ajaxToolkit:MaskedEditExtender>
                                         <ajaxToolkit:CalendarExtender ID="calendarButtonExtender" runat="server" TargetControlID="txtTu" PopupButtonID="Image1" Format="dd/MM/yyyy" />
                                        Đến&nbsp;&nbsp;&nbsp;
                                        <asp:TextBox runat="server" ID="txtDen" placehodler="dd/mm/yyyy" CssClass="spancalenda" Height="16px" Width="100px"/>
                                        <asp:CompareValidator ID="compareDatesValidator" ControlToCompare ="txtDen" ControlToValidate="txtTu" Display="None" ValidationGroup="a" runat="server" ErrorMessage="Từ ngày phải  nhỏ hơn đến ngày" Operator="LessThan" Type="Date"></asp:CompareValidator>
                                        <asp:ImageButton runat="Server" ID="Image2" ImageUrl="~/css/icons/lich.gif" AlternateText="Click to show calendar" />
                                          <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender2" MaskType="Date" runat="server" Mask="99/99/9999" TargetControlID="txtDen"></ajaxToolkit:MaskedEditExtender>
                                        <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDen" PopupButtonID="Image2" Format="dd/MM/yyyy" />
                                        <div style="height:5px;"></div>
                                        Băng cấp&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="drlBangCap" runat="server" CssClass="spannew"></asp:DropDownList>
                                        <div style="height:5px;"></div>
                                        Tình trạng&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="drlTinhTrang" runat="server" CssClass="spannew"></asp:DropDownList>
                                        <div style="height:5px;"></div>
                                        Ghi chú&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:TextBox ID="txtGhiChu" runat="server" CssClass="spannew"></asp:TextBox>
                                        <div style="height:5px;"></div>
                                        Thú tự&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:TextBox ID="txtThutu" runat="server" CssClass="spannew"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="box-content">
                                        <asp:GridView ID="grid" runat="server" AutoGenerateColumns="false" DataKeyNames="ID" OnRowDeleting="grid_RowDeleting">
                                            <Columns>
                                                <asp:TemplateField HeaderText="Chọn">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                                            CommandName="Delete" Text="Chọn"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" Width="50px" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Tên trường" SortExpression="TenTruong">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("TenTruong") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="ItemGridCell" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Ngành học" SortExpression="NganhHoc">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("NganhHoc") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="ItemGridCell" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Bằng cấp" SortExpression="BangCap">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("BangCap") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="ItemGridCell" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Tình trạng" SortExpression="TinhTrang">
                                                    <ItemTemplate>
                                                        <%#Eval("TinhTrang")%>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="ItemGridCell" />
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                        <div style="height:15px;"></div>
                                        <asp:Button ID="btnadd" runat="server" Text="Thêm mới" Width="90px" CssClass="btn btn-primary" OnClick="btnadd_Click" />
                                        <asp:Button ID="btnsave" ValidationGroup="a" runat="server" Text="Lưu" Width="90px" CssClass="btn btn-primary" OnClick="btnsave_Click" />
                                        <asp:Button ID="btnedit" runat="server" Text="Hiệu chỉnh" Width="90px" CssClass="btn btn-primary" OnClick="btnedit_Click"/>
                                        <asp:Button ID="btndelete" runat="server" Text="Xóa" Width="90px" CssClass="btn btn-primary" OnClick="btndelete_Click" OnClientClick="return confirm('Bạn có chắc xóa không?')"/>
                                        <asp:LinkButton ID="btnclose" Visible="true" runat="server" class="btn  btn-danger"><i class="icon-signout"></i> Đóng</asp:LinkButton>
                                        <span class="help-inline"><asp:Label ID="lblmessage" runat="server" Text="" ForeColor="Red"></asp:Label></span>
                                    </div>
                                </div>
                            </div>
                        </ContentTemplate>
                        <Triggers>
                             <asp:AsyncPostBackTrigger ControlID="btnadd" EventName="Click" />
                            <asp:AsyncPostBackTrigger ControlID="btnsave" EventName="Click" />
                            <asp:AsyncPostBackTrigger ControlID="btnedit" EventName="Click" />
                            <asp:AsyncPostBackTrigger ControlID="btndelete" EventName="Click" />
                            <asp:AsyncPostBackTrigger ControlID="grid" EventName="RowDeleting" />
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div>
    </div>

</asp:Content>

